import {request} from "./request";

export function notice_request(query,pageNum,pageSize) {
    return request({
        url:'/notices',
        methods:'get',
        params:{
            query,
            pageNum,
            pageSize
        }
    })
}

export function notice_changeStatus(id) {
    return request({
        url:'/notice/change/status/'+id,
        methods:'get'
    })
}

export function notice_delete(id) {
    return request({
        url:'/notice/delete/'+id,
        method:'get'
    })
}

export function notice_add(title,content) {
    return request({
        url:'/notice/add',
        method:'post',
        params:{
            title,
            content
        }})

}